angular.module('showcase.disableDeepWatchers', ['datatables'])
.controller('DisableDeepWatchers', DisableDeepWatchers);

function DisableDeepWatchers(DTOptionsBuilder, DTColumnBuilder) {
    var vm = this;
    var orders ={};
	var user_id = JSON.parse(sessionStorage["user_id"]);
	$http.get(webServiceUrl+'order/user-'+user_id)
	.success(function(response) {
		if(response.value==1){
			orders=response.result;
		}
	}
    vm.dtOptions = DTOptionsBuilder.fromSource(response.result);
    vm.dtColumns = [
        DTColumnBuilder.newColumn('user_medicine_order_id').withTitle('ID')
        //DTColumnBuilder.newColumn('firstName').withTitle('First name'),
        //DTColumnBuilder.newColumn('lastName').withTitle('Last name').notVisible()
    ];
}